package com.highgain.displacementtrend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.highgain.displacementtrend.entity.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhanglifeng
 * @date 2021/04/14 10:28
 **/
public interface DeviceMapper extends BaseMapper<Device> {
    List<Device> queryAllDevice(@Param("t") Device device);

    IPage<Device> queryDevice(IPage<Device> page, @Param("t")Device device);

    int getAllDeviceCountByCode(@Param("t")Device device);

    int getOnlineCountByCode(@Param("t")Device device);

    List<String> getOnlineDeviceId(@Param("t")Device device);

    String queryHiddenPointName(int hiddenPointId);

}
